package com.example.demo.rabbitmq.work;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 鱼仔
 * @date 2021/7/1 5:20 下午
 * 创建一个工作模式的work.test的队列
 */
@Configuration
public class WorkConfig {
    @Bean
    public Queue createWorkQueue() {
        return new Queue("work.test");
    }
}
